package cn.wgx.modules.base.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
public class BaseEntity implements Serializable {

    protected Date createDate;

    protected Integer createUserId;

    protected Date updateDate;

    protected Integer updateUserId;

    @JSONField(name = "_result")
    protected Integer _result = 0;

    @JsonIgnore
    protected boolean isInsert = false;

    @JsonIgnore
    protected boolean isUpdate = false;

    /**
     * 公共查询条件 - 日期起
     */
    @JSONField(name = "_starDate")
    protected Date _sDate;

    /**
     * 公共查询条件 - 日期止
     */
    @JSONField(name = "_endDate")
    protected Date _eDate;

}
